package com.lei.wiki.service.impl;

import com.lei.wiki.domain.Demo;
import com.lei.wiki.mapper.DemoMapper;
import com.lei.wiki.service.DemoService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author Lei Tao
 */
@Service
public class DemoServiceImpl implements DemoService {

    private final DemoMapper demoMapper;

    public DemoServiceImpl(DemoMapper demoMapper) {
        this.demoMapper = demoMapper;
    }

    @Override
    public List<Demo> list() {
        return demoMapper.selectByExample(null);
    }

}
